<template>
  <div>
    <van-tabbar v-model="active" class="nav">
      <van-tabbar-item icon="wap-home" to="/index">主页</van-tabbar-item>
      <van-tabbar-item icon="chat" to="/examMsg">考试</van-tabbar-item>
      <van-tabbar-item icon="records" to="/personMsg">个人</van-tabbar-item>
      <!--<van-tabbar-item icon="chat" dot>考试</van-tabbar-item>-->
      <!--<van-tabbar-item icon="records" info="5">个人</van-tabbar-item>-->
    </van-tabbar>
  </div>

</template>

<script>
  export default {
    name: "nav-tab-bar",
    data() {
      return {
        active: 0
      };
    },
    methods: {

    }
  };
</script>

<style scoped>
  .nav {
    position: fixed;
    bottom: 0;
  }
</style>
